package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.E_ANNEX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.E_FEEDBACK_CONTENT;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.E_FEEDBACK_STATE;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.E_PLAN_ID;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.E_REMARK;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.E_USER_ID;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_ANNEX_MAX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_FEEDBACK_CONTENT_MAX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_FEEDBACK_STATE_MAX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_PLAN_ID_MAX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_PLAN_ID_NOT_NULL;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_REMARK_MAX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_USER_ID_MAX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.M_USER_ID_NOT_NULL;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.N_ANNEX;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.N_FEEDBACK_CONTENT;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.N_FEEDBACK_STATE;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.N_PLAN_ID;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.N_REMARK;
import static org.jsola.hr.example.SocPlanFeedbackRecordExample.N_USER_ID;

/**
 * 增减员计划反馈记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【增减员计划反馈记录表】的参数")
@Data
public class SocPlanFeedbackRecordUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_PLAN_ID, example = E_PLAN_ID, required = true)
    @NotNull(message = M_PLAN_ID_NOT_NULL)
    @Length(max = 32, message = M_PLAN_ID_MAX)
    private String planId;

    @ApiModelProperty(notes = N_USER_ID, example = E_USER_ID, required = true)
    @NotNull(message = M_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_USER_ID_MAX)
    private String userId;

    @ApiModelProperty(notes = N_ANNEX, example = E_ANNEX)
    @Length(max = 2000, message = M_ANNEX_MAX)
    private String annex;

    @ApiModelProperty(notes = N_FEEDBACK_CONTENT, example = E_FEEDBACK_CONTENT)
    @Length(max = 255, message = M_FEEDBACK_CONTENT_MAX)
    private String feedbackContent;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_FEEDBACK_STATE, example = E_FEEDBACK_STATE)
    @Length(max = 50, message = M_FEEDBACK_STATE_MAX)
    private String feedbackState;


}

